datetime=`date +"%Y-%m-%d/%H:%M:%S"` 
log="/var/log/cp_sales.log"
if [ ! -f "$log" ];then
        touch $log
fi

for leader in xiewenzheng fanxueting zhuangkai ; do
        echo "$datetime cp files to $leader" >> $log
        rm -rf /var/home/$leader/销售成员/*
        cp -r /var2/share/resource_library/08-销售/01-销售成员/* /var/home/$leader/销售成员/
        chown -R $leader:official /var/home/$leader/销售成员
        chmod -R 700 /var/home/$leader/销售成员
        echo "$datetime SUCCESS!" >> $log
done
